home *** CD-ROM | disk | FTP | other *** search
/ One Click 21 (Special) / OC021.iso / Juegos / King of Skeleton / King of Skeleton.swf / scripts / DefineSprite_488 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-02-02  |  349 b   |  17 lines

  1. function setupSnow(t)
  2. {
  3.    t.xVel = - snowWidth * 0.25 + Math.random() * (snowWidth * 0.5);
  4.    t.yVel = - snowHeight - Math.random() * snowHeightRnd;
  5.    t._rotation = random(180);
  6. }
  7. function doSnow(t)
  8. {
  9.    t._x -= t.xVel;
  10.    t.yVel += gravity;
  11.    t._y += t.yVel;
  12. }
  13. snowHeight = 10;
  14. snowHeightRnd = 16;
  15. snowWidth = 12;
  16. gravity = 1.3;
  17.